
NAME := STM32F10X

-include menuconfig/config.mk

$(NAME)_SRCS = \
	delay.c \
	systick.c

ifeq ($(CONFIG_GPIO),y)
$(NAME)_SRCS += gpio.c
endif

ifeq ($(CONFIG_UART),y)
$(NAME)_SRCS += uart.c
endif

ifeq ($(CONFIG_SPI),y)
$(NAME)_SRCS += spi.c
endif

ifeq ($(CONFIG_FLASH_ONCHIP),y)
$(NAME)_SRCS += flash.c
endif

$(NAME)_COMPONENTS = \
	system/platform/stm32f10x \
	system/kernel/common \
	system/kernel/os \
	system/kernel/utils

GLOBAL_INCS = ../../include
